from .base import BaseStruct
from ..common.exceptions import BadRequestException


class TestExecParams(BaseStruct):

    KEYS = ["case_name", "keys", "values"]

    def is_valid(self):
        # TODO
        if not self.case_name:
            raise BadRequestException(
                "bad request test exec params not case_name"
            )
        if not self.keys:
            raise BadRequestException("bad request test exec params not keys")
        if not self.values:
            raise BadRequestException(
                "bad request test exec params not values"
            )

        return True
